package rhc.taskSchedule.util;

public class PageUtil {

	public static <T> Page<T> getPage(int currentPage,int pageSize){
		currentPage=currentPage<1?1:currentPage;
		pageSize=pageSize<0?0:(pageSize>50?50:pageSize);
		
		Page<T> page=new Page<T>();
		page.setCurrentPage(currentPage);
		page.setPageSize(pageSize);
		
		return page;
	}
}
